import Vue from "vue";
import VueRouter from "vue-router";
import hello from '../components/HelloWorld.vue'
import goto from "@/components/goto.vue"

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "hello",
    component: hello,
  },
  {
    path: "/goto",
    name: "goto",
    component: goto,
  },

  
];


const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
